<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="JavaScript">
<!--
	function valida_form() {

		var evento = document.consulta_evento.nome_evento.value;
		var local = document.consulta_evento.local_evento.value;

		if (evento == "") {
			alert("Insira o evento!");
			document.consulta_evento.nome_evento.focus();
			return false;
		} else if (local == "") {
			alert("Insira o local!");
			document.consulta_evento.local_evento.focus();
			return false;
		}else {
			
			document.forms[0].action = '/cad_evento/ServletConsultaEvento';
			document.forms[0].submit();
		}

	}
	-->
</script>
<title>Consulta Evento</title>
</head>
<body>
	<div align="center">
		<form name="consulta_evento"
			action="">
			Evento <input type="text" name="nome_evento" id="nome_evento">
			Local <input type="text" name="local_evento" id="local_evento">
			<input type="submit" value="Procurar" onclick="valida_form();"> <a
				href="<%= application.getContextPath() %>/menu.jsp">Voltar para
				Menu</a><br>
			<div align="right">
				<!--  <input type="button" value="Sair" onclick="sair()"> -->
			</div>
		</form>
		<jsp:include page="/resultado_consulta_evento.jsp"></jsp:include>
	</div>
</body>
</html>